Str = input("请输入一串字符:")
resoult = {}
for i in Str:
    resoult[i] = Str.count(i)
max_char = max(resoult, key=resoult.get)
max_count = resoult[max_char]
for key in resoult:
    print(f'"{key}": {resoult[key]}次')
print(f"出现次数最多的字符是 '{max_char}'，出现了 {max_count} 次。")